function toMain() {
    window.history.back(-1);
}

function editGraphChangeLog(id) {
    var lastGraphId = document.getElementById("lastGraphId").value;
    var curGraphId = document.getElementById("curGraphId").value;
    var updateTime = document.getElementById("updateTime").value;
    // console.log("id:",id,"pointCode:",pointCode,"pointName:",pointName,"pointAccess:",pointAccess);

    window.parent.layerAlert("你确定要修改该记录吗？", {
        icon: 3,
        title: "提示",
        btn:["确定","取消"],
        yes:function (){
            $.ajax({
                type: "GET",
                url: "/multipower/graphChangeLog/update",
                data: {
                    id: id,
                    lastGraphId:lastGraphId,
                    curGraphId:curGraphId,
                    updateTime:updateTime
                },
                success: function () {
                    window.location.href = "/multipower/knowChartChangeHistory.html";
                    window.parent.layerAlert("修改成功", {
                        icon: 6,
                        title: "提示"
                    });
                },
                error:function () {
                    window.parent.layerAlert("修改失败", {
                        icon: 5,
                        title: "提示"
                    });
                }
            })
        }
    });
}